<!DOCTYPE HTML>

<html lang="en">
<head>

<title>Saml2ErrorCodes (spring-security-docs 5.6.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="Saml2ErrorCodes (spring-security-docs 5.6.3 API)";
        }
    }
    catch(err) {
    }
//-->
var pathtoroot = "../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">

<div class="topNav"><a id="navbar.top">

</a>
<div class="skipNav"><a href="Saml2ErrorCodes.html#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="Saml2ErrorCodes.html#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="Saml2ErrorCodes.html#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
<a id="skip.navbar.top">

</a></div>

</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>

<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.springframework.security.saml2.core</a></div>
<h2 title="Interface Saml2ErrorCodes" class="title">Interface Saml2ErrorCodes</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public interface <span class="typeNameLabel">Saml2ErrorCodes</span></pre>
<div class="block">A list of SAML known 2 error codes used during SAML authentication.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>5.2</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">

</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#DECRYPTION_ERROR">DECRYPTION_ERROR</a></span></code></th>
<td class="colLast">
<div class="block">The system failed to decrypt an assertion or a name identifier.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#INTERNAL_VALIDATION_ERROR">INTERNAL_VALIDATION_ERROR</a></span></code></th>
<td class="colLast">
<div class="block">An error happened during validation.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#INVALID_ASSERTION">INVALID_ASSERTION</a></span></code></th>
<td class="colLast">
<div class="block">The assertion was not valid.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#INVALID_DESTINATION">INVALID_DESTINATION</a></span></code></th>
<td class="colLast">
<div class="block">Response destination does not match the request URL.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#INVALID_ISSUER">INVALID_ISSUER</a></span></code></th>
<td class="colLast">
<div class="block">An Issuer element contained a value that didn't
https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=15</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#INVALID_REQUEST">INVALID_REQUEST</a></span></code></th>
<td class="colLast">
<div class="block">Request is invalid in a general way.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#INVALID_RESPONSE">INVALID_RESPONSE</a></span></code></th>
<td class="colLast">
<div class="block">Response is invalid in a general way.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#INVALID_SIGNATURE">INVALID_SIGNATURE</a></span></code></th>
<td class="colLast">
<div class="block">The signature of response or assertion was invalid.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#MALFORMED_RESPONSE_DATA">MALFORMED_RESPONSE_DATA</a></span></code></th>
<td class="colLast">
<div class="block">The response data is malformed or incomplete.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#RELYING_PARTY_REGISTRATION_NOT_FOUND">RELYING_PARTY_REGISTRATION_NOT_FOUND</a></span></code></th>
<td class="colLast">
<div class="block">The relying party registration was not found.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#SUBJECT_NOT_FOUND">SUBJECT_NOT_FOUND</a></span></code></th>
<td class="colLast">
<div class="block">The assertion did not contain a subject element.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#UNKNOWN_RESPONSE_CLASS">UNKNOWN_RESPONSE_CLASS</a></span></code></th>
<td class="colLast">
<div class="block">SAML Data does not represent a SAML 2 Response object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Saml2ErrorCodes.html#USERNAME_NOT_FOUND">USERNAME_NOT_FOUND</a></span></code></th>
<td class="colLast">
<div class="block">The subject did not contain a user identifier The assertion contained a subject
element, but the subject element did not have a <code>NameID</code> or
<code>EncryptedID</code> element
https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=18</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">

</a>
<h3>Field Detail</h3>
<a id="UNKNOWN_RESPONSE_CLASS">

</a>
<ul class="blockList">
<li class="blockList">
<h4>UNKNOWN_RESPONSE_CLASS</h4>
<pre>static final&nbsp;java.lang.String UNKNOWN_RESPONSE_CLASS</pre>
<div class="block">SAML Data does not represent a SAML 2 Response object. A valid XML object was
received, but that object was not a SAML 2 Response object of type
<code>ResponseType</code> per specification
https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=46</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.UNKNOWN_RESPONSE_CLASS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="MALFORMED_RESPONSE_DATA">

</a>
<ul class="blockList">
<li class="blockList">
<h4>MALFORMED_RESPONSE_DATA</h4>
<pre>static final&nbsp;java.lang.String MALFORMED_RESPONSE_DATA</pre>
<div class="block">The response data is malformed or incomplete. An invalid XML object was received,
and XML unmarshalling failed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.MALFORMED_RESPONSE_DATA">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="INVALID_REQUEST">

</a>
<ul class="blockList">
<li class="blockList">
<h4>INVALID_REQUEST</h4>
<pre>static final&nbsp;java.lang.String INVALID_REQUEST</pre>
<div class="block">Request is invalid in a general way.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>5.6</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.INVALID_REQUEST">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="INVALID_RESPONSE">

</a>
<ul class="blockList">
<li class="blockList">
<h4>INVALID_RESPONSE</h4>
<pre>static final&nbsp;java.lang.String INVALID_RESPONSE</pre>
<div class="block">Response is invalid in a general way.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>5.5</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.INVALID_RESPONSE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="INVALID_DESTINATION">

</a>
<ul class="blockList">
<li class="blockList">
<h4>INVALID_DESTINATION</h4>
<pre>static final&nbsp;java.lang.String INVALID_DESTINATION</pre>
<div class="block">Response destination does not match the request URL. A SAML 2 response object was
received at a URL that did not match the URL stored in the {code Destination}
attribute in the Response object.
https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=38</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.INVALID_DESTINATION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="INVALID_ASSERTION">

</a>
<ul class="blockList">
<li class="blockList">
<h4>INVALID_ASSERTION</h4>
<pre>static final&nbsp;java.lang.String INVALID_ASSERTION</pre>
<div class="block">The assertion was not valid. The assertion used for authentication failed
validation. Details around the failure will be present in the error description.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.INVALID_ASSERTION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="INVALID_SIGNATURE">

</a>
<ul class="blockList">
<li class="blockList">
<h4>INVALID_SIGNATURE</h4>
<pre>static final&nbsp;java.lang.String INVALID_SIGNATURE</pre>
<div class="block">The signature of response or assertion was invalid. Either the response or the
assertion was missing a signature or the signature could not be verified using the
system's configured credentials. Most commonly the IDP's X509 certificate.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.INVALID_SIGNATURE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="SUBJECT_NOT_FOUND">

</a>
<ul class="blockList">
<li class="blockList">
<h4>SUBJECT_NOT_FOUND</h4>
<pre>static final&nbsp;java.lang.String SUBJECT_NOT_FOUND</pre>
<div class="block">The assertion did not contain a subject element. The subject element, type
SubjectType, contains a <code>NameID</code> or an <code>EncryptedID</code> that is used to
assign the authenticated principal an identifier, typically a username.
https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=18</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.SUBJECT_NOT_FOUND">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="USERNAME_NOT_FOUND">

</a>
<ul class="blockList">
<li class="blockList">
<h4>USERNAME_NOT_FOUND</h4>
<pre>static final&nbsp;java.lang.String USERNAME_NOT_FOUND</pre>
<div class="block">The subject did not contain a user identifier The assertion contained a subject
element, but the subject element did not have a <code>NameID</code> or
<code>EncryptedID</code> element
https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=18</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.USERNAME_NOT_FOUND">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="DECRYPTION_ERROR">

</a>
<ul class="blockList">
<li class="blockList">
<h4>DECRYPTION_ERROR</h4>
<pre>static final&nbsp;java.lang.String DECRYPTION_ERROR</pre>
<div class="block">The system failed to decrypt an assertion or a name identifier. This error code
will be thrown if the decryption of either a <code>EncryptedAssertion</code> or
<code>EncryptedID</code> fails.
https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=17</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.DECRYPTION_ERROR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="INVALID_ISSUER">

</a>
<ul class="blockList">
<li class="blockList">
<h4>INVALID_ISSUER</h4>
<pre>static final&nbsp;java.lang.String INVALID_ISSUER</pre>
<div class="block">An Issuer element contained a value that didn't
https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf#page=15</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.INVALID_ISSUER">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="INTERNAL_VALIDATION_ERROR">

</a>
<ul class="blockList">
<li class="blockList">
<h4>INTERNAL_VALIDATION_ERROR</h4>
<pre>static final&nbsp;java.lang.String INTERNAL_VALIDATION_ERROR</pre>
<div class="block">An error happened during validation. Used when internal, non classified, errors are
caught during the authentication process.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.INTERNAL_VALIDATION_ERROR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="RELYING_PARTY_REGISTRATION_NOT_FOUND">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>RELYING_PARTY_REGISTRATION_NOT_FOUND</h4>
<pre>static final&nbsp;java.lang.String RELYING_PARTY_REGISTRATION_NOT_FOUND</pre>
<div class="block">The relying party registration was not found. The registration ID did not
correspond to any relying party registration.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.springframework.security.saml2.core.Saml2ErrorCodes.RELYING_PARTY_REGISTRATION_NOT_FOUND">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>

<footer role="contentinfo">
<nav role="navigation">

<div class="bottomNav"><a id="navbar.bottom">

</a>
<div class="skipNav"><a href="Saml2ErrorCodes.html#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="Saml2ErrorCodes.html#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="Saml2ErrorCodes.html#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
<a id="skip.navbar.bottom">

</a></div>

</nav>
</footer>
<script>if (window.parent == window) {(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-2728886-23', 'auto', {'siteSpeedSampleRate': 100});ga('send', 'pageview');}</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"7040f58b9d1597cf","token":"bffcb8a918ae4755926f76178bfbd26b","version":"2021.12.0","si":100}' crossorigin="anonymous"></script>
</body>
</html>
